<%--
  Created by IntelliJ IDEA.
  User: 若兮
  Date: 2021/12/28
  Time: 11:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改部门</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body class="layui-anim layui-anim-downbit">
<form class="layui-form" action="${pageContext.request.contextPath}/editDeptByDno" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">部门编号</label>
        <div class="layui-input-inline">
            <input type="text" readonly name="dno" value="${requestScope.dept.dno}" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">部门名称</label>
        <div class="layui-input-inline">
            <input type="text" readonly name="dName" value="${requestScope.dept.dName}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">部门电话</label>
        <div class="layui-input-inline">
            <input type="tel" name="tel" value="${requestScope.dept.tel}" required class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">办公地点</label>
        <div class="layui-input-inline">
            <input type="text" name="dPlace" value="${requestScope.dept.dPlace}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <button class="layui-btn" lay-submit style="margin-left: 20px;margin-top: 10px">立即提交</button>
        <a class="layui-btn" href="${pageContext.request.contextPath}/showAllDeptByPage"
           style="margin-top: 10px;text-decoration: none">返回</a>
    </div>
</form>
<script type="text/javascript" src="js/jquery-3.6.0.js"></script>
<script type="text/javascript" src="layui/layui.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
